# -*- coding: utf-8 -*-
"""
Created on Wed Sep 27 11:44:34 2017

@author: Luther
"""
from math import sqrt


def isprime(x):
    if x == 1:
        return False
    else:
        k = int(sqrt(x))
        for j in range(2, k + 1):
            if x % j == 0:
                return False
        return True


for i in range(1, 101):
    if isprime(i):
        print(i, end=' ')
